import 'package:flutter/material.dart';
import 'package:flutter_blank/pages/welcome.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: const WelcomePage(),
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        fontFamily: 'Poppins',
        primaryColor: Colors.orange,
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.orange, // 你的品牌色
          brightness: Brightness.light, // 亮度模式（light 或 dark）
        ),
        elevatedButtonTheme: ElevatedButtonThemeData(
          style: ElevatedButton.styleFrom(
            backgroundColor: Colors.orange,
            // shape: RoundedRectangleBorder(
            //   borderRadius: BorderRadius.circular(8.0),
            // ),
          ),
        ),
      ),
      // 暗色主题
      darkTheme: ThemeData.dark().copyWith(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.blue,
          brightness: Brightness.dark,
        ),
      ),
      themeMode: ThemeMode.light, // 跟随系统、亮色或暗色
    );
  }
}
